package com.nanrui.mutualinductor.data;


import java.util.Locale;

public class Objects {
    public static String displayValue(Object paramObject) {
        return displayValue(paramObject, null);
    }

    public static String displayValue(Object paramObject, String paramString) {
        if ((paramObject instanceof String)) {
            return paramObject.toString();
        }
        if ((paramObject instanceof Float)) {
            if (((Float) paramObject).floatValue() == (int) ((Float) paramObject).floatValue()) {
                StringBuilder localStringBuilder = new StringBuilder();
                localStringBuilder.append(String.format(Locale.getDefault(), "%d", new Object[]{Integer.valueOf((int) ((Float) paramObject).floatValue())}));
                if (paramString == null) {
                    paramString = "";
                }
                localStringBuilder.append(paramString);
                return localStringBuilder.toString();
            }
            StringBuilder localStringBuilder = new StringBuilder();
            localStringBuilder.append(String.format("%s", new Object[]{paramObject}));
            if (paramString == null) {
                paramString = "";
            }
            localStringBuilder.append(paramString);
            return localStringBuilder.toString();
        }
        return "";
    }

    public static boolean equals(Object paramObject1, Object paramObject2) {
        boolean bool;
        if (paramObject1 == null) {
            if (paramObject2 == null) {
                bool = true;
            } else {
                bool = false;
            }
        } else {
            bool = paramObject1.equals(paramObject2);
        }
        return bool;
    }

    public static boolean notEquals(Object paramObject1, Object paramObject2) {
        return equals(paramObject1, paramObject2) ^ true;
    }
}
